package com.ilvyou.data.lcs;

import java.sql.Timestamp;

/**
 * Created by Administrator on 2017/2/13.
 */
public class CollectPsync2Entity {
    private Integer ymdayid;
    private Long periodid;
    private Long actid;
    private Short syncflag;
    private Timestamp syncdate;

    public Integer getYmdayid() {
        return ymdayid;
    }

    public void setYmdayid(Integer ymdayid) {
        this.ymdayid = ymdayid;
    }

    public Long getPeriodid() {
        return periodid;
    }

    public void setPeriodid(Long periodid) {
        this.periodid = periodid;
    }

    public Long getActid() {
        return actid;
    }

    public void setActid(Long actid) {
        this.actid = actid;
    }

    public Short getSyncflag() {
        return syncflag;
    }

    public void setSyncflag(Short syncflag) {
        this.syncflag = syncflag;
    }

    public Timestamp getSyncdate() {
        return syncdate;
    }

    public void setSyncdate(Timestamp syncdate) {
        this.syncdate = syncdate;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        CollectPsync2Entity that = (CollectPsync2Entity) o;

        if (ymdayid != null ? !ymdayid.equals(that.ymdayid) : that.ymdayid != null) return false;
        if (periodid != null ? !periodid.equals(that.periodid) : that.periodid != null) return false;
        if (actid != null ? !actid.equals(that.actid) : that.actid != null) return false;
        if (syncflag != null ? !syncflag.equals(that.syncflag) : that.syncflag != null) return false;
        if (syncdate != null ? !syncdate.equals(that.syncdate) : that.syncdate != null) return false;

        return true;
    }

    @Override
    public int hashCode() {
        int result = ymdayid != null ? ymdayid.hashCode() : 0;
        result = 31 * result + (periodid != null ? periodid.hashCode() : 0);
        result = 31 * result + (actid != null ? actid.hashCode() : 0);
        result = 31 * result + (syncflag != null ? syncflag.hashCode() : 0);
        result = 31 * result + (syncdate != null ? syncdate.hashCode() : 0);
        return result;
    }
}
